package router

import (
	"grs-report-admin/service"

	"github.com/gin-gonic/gin"
)

func RegisterDataSourceRouter(r *gin.RouterGroup) {
	dataSourceRouter := r.Group("/source")
	dataSourceRouter.GET("/list", service.GetDataSourceList)
	dataSourceRouter.POST("/add", service.AddDataSource)
	dataSourceRouter.POST("/edit", service.EditDataSource)
	dataSourceRouter.POST("/delete", service.DeleteDataSource)
}
